// 用户模块

export default {
  namespaced: true,
  state() {
    return {
      // 用户信息
      profile: {
        id: '',
        avatar: '',
        nickname: '',
        account: '',
        mobile: '',
        token: ''
      },
      // 登陆后回调的页面
      redirectUrl: '/'
    }
  },
  mutations: {
    setUser(state, payloads) {
      state.profile = payloads
    },
    setUrl(state, url) {
      state.redirectUrl = url
    }
  }
}
